package com.ccrfid.rmc6.entity.business.chongqing;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "cq_patrol_record")
public class CQPatrolRecordEntity {
    private Long id;
    private Long patrolRoadId;
    private String patrolRoadName;
    private Long personnelId;
    private String personnelName;
    private String personnelSn;
    private Long locationId;
    private String locationName;
    private String locationSn;
    private Integer eventType;
    private String eventTypeRemark;
    private Timestamp recordTime;
    @JsonIgnore
    private String task;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "patrol_road_id", nullable = false)
    public Long getPatrolRoadId() {
        return patrolRoadId;
    }

    public void setPatrolRoadId(Long patrolRoadId) {
        this.patrolRoadId = patrolRoadId;
    }

    @Basic
    @Column(name = "patrol_road_name", length = 45, nullable = true)
    public String getPatrolRoadName() {
        return patrolRoadName;
    }

    public void setPatrolRoadName(String patrolRoadName) {
        this.patrolRoadName = patrolRoadName;
    }

    @Basic
    @Column(name = "personnel_id", nullable = false)
    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    @Basic
    @Column(name = "personnel_name", length = 45, nullable = true)
    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    @Basic
    @Column(name = "personnel_sn", length = 45, nullable = true)
    public String getPersonnelSn() {
        return personnelSn;
    }

    public void setPersonnelSn(String personnelSn) {
        this.personnelSn = personnelSn;
    }

    @Basic
    @Column(name = "location_id", nullable = true)
    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    @Basic
    @Column(name = "location_name", length = 45, nullable = true)
    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    @Basic
    @Column(name = "location_sn", length = 45, nullable = true)
    public String getLocationSn() {
        return locationSn;
    }

    public void setLocationSn(String locationSn) {
        this.locationSn = locationSn;
    }

    @Basic
    @Column(name = "event_type", nullable = false)
    public Integer getEventType() {
        return eventType;
    }

    public void setEventType(Integer eventType) {
        this.eventType = eventType;
    }

    @Basic
    @Column(name = "event_type_remark", length = 45, nullable = true)
    public String getEventTypeRemark() {
        return eventTypeRemark;
    }

    public void setEventTypeRemark(String eventTypeRemark) {
        this.eventTypeRemark = eventTypeRemark;
    }

    @Basic
    @Column(name = "record_time", nullable = false)
    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    @Basic
    @Column(name = "task", length = 45, nullable = true)
    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }
}
